Component({
    data: {
        selected: 0,
        color: "#7A7E83",
        selectedColor: "#2575FC",
        list: [{
            pagePath: "/pages/home_page/home_page",
            iconPath: "../images/invalid_icon/home.svg",
            selectedIconPath: "../images/activated_icon/home.svg",
            text: "首页"
        }, {
            pagePath: "/pages/trends/trends",
            iconPath: "../images/invalid_icon/private_msg.svg",
            selectedIconPath: "../images/activated_icon/private_msg.svg",
            text: "动态"
        }, {
            pagePath: "/pages/personal/personal",
            iconPath: "../images/invalid_icon/me.svg",
            selectedIconPath: "../images/activated_icon/me.svg",
            text: "我的"
        }]
    },
    attached() {},
    methods: {
        switchTab(e) {
            const data = e.currentTarget.dataset
            const url = data.path
            wx.switchTab({
                url
            })
        }
    }
})